import request from '@/utils/request'

// 查询常见问题列表
export function listWorkInfo(query) {
  return request({
    url: '/business/workInfo/list',
    method: 'get',
    params: query
  })
}

// 查询常见问题所有列表
export function listAllWorkInfo(query) {
  return request({
    url: '/business/workInfo/listAll',
    method: 'get',
    params: query
  })
}

// 查询常见问题详细
export function getWorkInfo(id) {
  return request({
    url: '/business/workInfo/getInfo/' + id,
    method: 'get'
  })
}

// 新增常见问题
export function addWorkInfo(data) {
  return request({
    url: '/business/workInfo/add',
    method: 'post',
    data: data
  })
}

// 修改常见问题
export function updateWorkInfo(data) {
  return request({
    url: '/business/workInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除常见问题
export function delWorkInfo(id) {
  return request({
    url: '/business/workInfo/remove/' + id,
    method: 'get'
  })
}
